package com.zjc.yohoshop.mvp.model;

import com.zjc.lib_core.http.MResponseManager;
import com.zjc.lib_core.mvp.model.BaseModel;
import com.zjc.yohoshop.bean.BaseEntity;
import com.zjc.yohoshop.bean.CategoryEntity;
//import com.zjc.yohoshop.bean.CategoryLeftEntity;
//import com.zjc.yohoshop.bean.CategoryRightEntity;
      //void categoryLeftSuccess(CategoryEntity entity);
           //   void categoryRightSuccess(CategotyHotEntity entity);
import com.zjc.yohoshop.bean.CategotyHotEntity;
import com.zjc.yohoshop.mvp.contract.CategoryFragmentContract;
import com.zjc.yohoshop.network.API;

import java.util.Map;

import javax.inject.Inject;

import io.reactivex.Observable;

public class CategoryFragmentModel extends BaseModel implements CategoryFragmentContract.CategoryFragmentIModel {

    @Inject
    public CategoryFragmentModel(){}

    @Override
    public Observable<BaseEntity> requestCategoryAll(Map<String, String> map) {
//        Observable<CategoryEntity> left = MResponseManager.obtainRetrofit(API.class).postCategoryList(map.get("left"));
//        Observable<CategotyHotEntity> right = MResponseManager.obtainRetrofit(API.class).postCategoryHot(map.get("right"));
        return null;
    }

    @Override
    public Observable<CategotyHotEntity> requestCategoryRight(String request) {
        return MResponseManager.obtainRetrofit(API.class).postCategoryHot(request);
    }

    @Override
    public void destroy() {

    }
}
